package mylibrary.server;

import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Test {

	public static void main(String[] args) throws Exception {
		ServerSocket server = new ServerSocket(100);
		
		while(true) {
			Socket socket = server.accept();
			
			OutputStream os = socket.getOutputStream();
			
			byte[] bb = "12345".getBytes();
			os.write(bb);
			os.close();
		}
		
		
		
		
	}
}
